#ifndef _TOOLS_H_
#define _TOOLS_H_

#include "math.h"
#include "string.h"
#include "stdint.h"

int myStrstr(char *buf,char *target,int len,int target_len);
int checkStr(char *buf, char *target, int buf_len, int target_len);
	
uint8_t str2hex(char *ptr1, uint16_t *len, uint8_t *hex);
uint8_t hex2str(uint16_t num, uint8_t *str, uint8_t *len);
uint8_t hexToDec(uint8_t hex);

uint16_t CalcCRC16_MCRF4XX (uint8_t *pArray,uint16_t length) ;
void CalcXOR(uint8_t *data,uint8_t len);

#endif
